package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Menu;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    Role findById(Integer id);

    void add(Integer[] permissionIds, Role role, Integer[] menuIds);

    void edit(Integer[] permissionIds, Role role, Integer[] menuIds);

    void del(Integer id);

    List<Role> findAll();

    Integer[] findRoleIdsByUserId(Integer id);

    List<Menu> findMenuAll();

    Integer[] findMenuIdsByRoleId(Integer id);
}
